import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
const Diy: AppRouteRecordRaw = {
  path: '/visualEditor',
  name: 'visualEditor',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'DIY',
    icon: 'icon-palette',
    requiresAuth: true,
    order: 3,
  },
  children: [
    {
      path: '/visualEditor/home',
      name: 'visualEditorHome',
      component: () => import('@/views/visualEditor/home.vue'),
      meta: {
        locale: '首页DIY',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/visualEditor/config',
      name: 'visualEditorconfig',
      component: () => import('@/views/visualEditor/config.vue'),
      meta: {
        locale: '主题配置',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
}

export default Diy
